nrm 的安装与使用

MuYan2022-05-06web

什么是 nrm

nrm 是一个 npm 源管理器,允许你快速地在 npm 源间切换。

安装与使用

  • 安装 nrm
npm install -g nrm
  • nrm 基础操作命令
registry: npm的源别名
url: 源地址
# 查看源列表
nrm ls

# 添加源
nrm add <registry> <url>
# 例如
nrm add test http://127.0.0.1

# 切换源
nrm use <registry>

# 删除源
nrm use <registry>

# 查看当前源
nrm current

# 测试源速度
nrm test <registry>
上次更新 2026/6/23 11:49:15
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8